<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<c:set var="mp" value="on"/>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<script type="text/javascript" src="${base}/js/html5shiv-printshiv.js"></script>
		<title>${siteName}</title>
		<%@ include file="/common/commonstyle.jsp" %>
		<link rel="stylesheet" type="text/css" href="${base}/css/spinner.css" />
		<script type="text/javascript" src="${base}/js/jquery.spinner.js"></script>
		<script type="text/javascript">
			function toShopCar(userId) {
				if("" == userId || "undefined" == typeof(userId)) {
					loginModel()
				} else {
					location.href='${base}/orderFrontCtl/orderinfo'
				}
			}
			
			$(function() {
				$("#loginForm").submit(function(){
					var email = $("#email").val();
					var password = $("#password").val();
					if(null == email || "" == email) {
						jAlert("<spring:message code='loginempty' />");
						return false;
					} else if(null == password || "" == password) {
						jAlert("<spring:message code='loginempty' />");
						return false;
					} else {
						return true;
					}
				});
				
				$(".numberspinner").numberspinner({
					value: 1,
					onValueChanged: function(v) {
						if(window.console) {
							console.log(v);
						}
					}
				});
			});
		</script>
	</head>
	
	<body>
		<div class="main">
			<%@ include file="/common/header.jsp" %>
			<div id="content">
				<div>
					<a href="#"><img src="${base}/images/pie.png"/></a>
					<a href="${base}/waresFrontCtl/selectDish?typeId=2"><img src="${base}/images/link-drink.png"/></a>
				<div class="blank"></div>
				<!-- 本周菜单一览开始 -->
				<div id="meal">
					<div class="box-title">
                        <img src="${base}/images/label-person-menu-list.png"/>
                    </div>
					<div class="box">
						<!-- BF描述 -->
						<div class="describe">
								<p>BF为您提供均衡搭配的营养定餐，周一至周五，既满足一周营养摄取的要求，又满足当日营养、能量的需求。							</p>
								<p> 和我们一起，周一至周五，关注健康、关怀自己，从早餐做起！</p>
						</div>
						<div class="item-container">
							<c:forEach items="${weekComboList}" var="weekCombo" varStatus="weekIndex" begin="0" end="4">
								<div class="${0 == weekIndex.index ? 'item first' : 'item' }">
									<div class="day">${weekCombo.selldateStr }</div>
									<div class="prod-image"><img src="${base }${weekCombo.combo.photo}" width="148" height="220" /></div>
									<ul>
										<c:forEach items="${weekCombo.dishList}" var="comboDish">
											<li>${i18n == 'en_US' ? comboDish.dish.dishenname : comboDish.dish.dishchname}</li>
										</c:forEach>
									</ul>
									<div class="summary">总热量＝${weekCombo.combo.hot }千卡</div>
								</div>
							</c:forEach>
						</div>
						<div class="clear"></div>
						<div class="prod-info">
							BF定餐的目标是维护健康，为您打理平日、忙碌中的早餐需求。坚持每天吃健康的早餐，是对自己健康承诺的开始。<br/>
							订购BF的参考价格：35元/天（< 5天），32元/天（≥5天）
						</div>
						<div class="btn-group">
							<button type="button" class="button" onclick="location.href='${base}/orderFrontCtl/toPersionOrderCombo'"><spring:message code="ordering" /></button>
						</div>
						<div class="blank"></div>
						<div class="box-footer"></div>
					</div>
				</div>
				<!-- 本周菜单一览结束 -->
			</div>
		</div>
		<%@ include file="/common/footer.jsp" %>
	</body>
</html>